How to pass form errors in session or flash? [Rails 2.3.5]
Posted
by yuval
on Stack Overflow
See other posts from Stack Overflow
or by yuval
Published on 2010-04-04T02:23:37Z
Indexed on
2010/04/04
2:33 UTC
Read the original article
Hit count: 312
I have a create action for a form that potentially generates errors (i.e. first name is missing) and then redirects.
The problem is, that when the redirect happens those form errors get lost. How could I pass those form errors in a session to be displayed back in the original form (which should still be filled out with the previous details, as in the original error_messages behavior)?
Thanks!
© Stack Overflow or respective owner